package com.foryou.wechat.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * <h2>聊天列表表</h2>
 * Created by Lee.
 */
@Data
@TableName("v_chat_list")
@NoArgsConstructor
public class ChatListEntity extends BaseEntity{

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Long chatId;
    private Long userId;
    private Long anotherId;
    private int isOnline;
    private int unread;

    public ChatListEntity(Long chatId, Long userId, Long anotherId, int isOnline) {
        this.chatId = chatId;
        this.userId = userId;
        this.anotherId = anotherId;
        this.isOnline = isOnline;
    }
}
